package com.filldream.fastboot.base.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.Version;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商品分类
 * </p>
 *
 * @author RickSun
 * @since 2020-05-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class MallCategory implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 分类名
     */
    private String name;
    /**
     * 父级ID
     */
    private Long pId;
    /**
     * 是否叶子目录
     */
    private Integer isLeaf;
    /**
     * 分类图片
     */
    private String img;
    /**
     * 排序，大大
     */
    private Integer cateSort;
    /**
     * 状态 0-禁用 1-启用
     */
    private Integer status;
    private Date createTime;
    private Date updateTime;

}
